/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.snda.lidejia.jobflow.taskhandler.ftp;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

/**
 *
 * @author lidejia
 */
public class FtpFetchList implements Iterable<FilePair> {

    private String userName;
    private String password;
    private String host;
    private int port;
    private List<FilePair> files = new LinkedList<FilePair>();

    public FtpFetchList() {
    }

    public FtpFetchList(String host, String userName, String password, int port) {
        this.host = host;
        this.userName = userName;
        this.password = password;
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void addFilePair(FilePair file) {
        files.add(file);
    }

    public Iterator<FilePair> iterator() {
        return files.iterator();
    }
}
